﻿@model Dinamico.Models.PartCategoryModel

@{ Html.Resources().JavaScript("~/Scripts/customNative.js"); }
<div class="standard" id="loading">
<img src="/Upload/sv/ajax-loader.gif" style="border: 10px none papayaWhip;" alt="" />Wyszukiwanie...
</div>
<div class="standard" id="maincontainer"></div>
<script type="text/javascript" language="javascript">
var searchObj = new SearchObj();
 $(document).ready(function () {
     searchObj.printContent('@Model.Category', '@Model.Atrybutes', 50);
});
$(window).scroll(function () {
    term = '@Model.Category';
     if ($.browser.mozilla) {
         if ($(document).height() - $(window).scrollTop() <= $(window).height() + 1) {
             searchObj.printContent(term, 10);
         }
     }
     else {
         if ($(window).scrollTop() >= $(document).height() - $(window).height() - 1) {
             searchObj.printContent(term, 10);
         }
     }
 });
</script>